package com.imagine.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Created by liangyue on 2017/9/19.
 */

@Component
public class Stock implements Serializable{
    //股票代码
    private String stockCode;
    //股票名称
    private String stockName;
    //今日开盘价
    private double todayOpenPrice;
    //昨日收盘价
    private double todayClosePrice;
    //当前股票价格
    private double currentPrice;
    //今日最高价
    private double todayHighestPrice;
    //今日最低价
    private double todayLowestPrice;
    //竞买价，即“买一”报价
    private double bidPrice;
    //竞卖价，即“卖一”报价
    private double sellPrice;
    //成交的股票数，由于股票交易以一百股为基本单位，所以在使用时，通常把该值除以一百
    private long tradedStockesNum;
    //成交金额，单位为“元”，为了一目了然，通常以“万元”为成交金额的单位，所以通常把该值除以一万
    private double tradedStocksAmount;
    //“买一”申请股数
    private long buyFirstApplyStocksNum;
    //“买一”报价
    private double buyFirstPrice;
    //“买二”申请股数
    private long buySecondApplyStocksNum;
    //“买二”报价
    private double buySecondPrice;
    //“买三”申请股数
    private long buyThirdApplyStocksNum;
    //“买三”报价
    private double buyThirdPrice;
    //“买四”申请股数
    private long buyFourthApplyStocksNum;
    //“买四”报价
    private double buyFourthPrice;
    //“买五”申请股数
    private long buyFifthApplyStocksNum;
    //“买五”报价
    private double buyFifthPrice;
    //“卖一”申请股数
    private long sellFirstApplyStocksNum;
    //“卖一”报价
    private double sellFirstPrice;
    //“卖二”申请股数
    private long sellSecondApplyStocksNum;
    //“卖二”报价
    private double sellSecondPrice;
    //“卖三”申请股数
    private long sellThirdApplyStocksNum;
    //“卖三”报价
    private double sellThirdPrice;
    //“卖四”申请股数
    private long sellFourthApplyStocksNum;
    //“卖四”报价
    private double sellFourthPrice;
    //“卖五”申请股数
    private long sellFifthApplyStocksNum;
    //“卖五”报价
    private double sellFifthPrice;
    //日期
    private String currentDate;
    //时间
    private String currentTime;

    public Stock(){}

    public Stock(String stockCode, String stockName, double todayOpenPrice, double todayClosePrice, double currentPrice, double todayHighestPrice, double todayLowestPrice, double bidPrice, double sellPrice, long tradedStockesNum, double tradedStocksAmount, long buyFirstApplyStocksNum, double buyFirstPrice, long buySecondApplyStocksNum, double buySecondPrice, long buyThirdApplyStocksNum, double buyThirdPrice, long buyFourthApplyStocksNum, double buyFourthPrice, long buyFifthApplyStocksNum, double buyFifthPrice, long sellFirstApplyStocksNum, double sellFirstPrice, long sellSecondApplyStocksNum, double sellSecondPrice, long sellThirdApplyStocksNum, double sellThirdPrice, long sellFourthApplyStocksNum, double sellFourthPrice, long sellFifthApplyStocksNum, double sellFifthPrice, String currentDate, String currentTime) {
        this.stockCode = stockCode;
        this.stockName = stockName;
        this.todayOpenPrice = todayOpenPrice;
        this.todayClosePrice = todayClosePrice;
        this.currentPrice = currentPrice;
        this.todayHighestPrice = todayHighestPrice;
        this.todayLowestPrice = todayLowestPrice;
        this.bidPrice = bidPrice;
        this.sellPrice = sellPrice;
        this.tradedStockesNum = tradedStockesNum;
        this.tradedStocksAmount = tradedStocksAmount;
        this.buyFirstApplyStocksNum = buyFirstApplyStocksNum;
        this.buyFirstPrice = buyFirstPrice;
        this.buySecondApplyStocksNum = buySecondApplyStocksNum;
        this.buySecondPrice = buySecondPrice;
        this.buyThirdApplyStocksNum = buyThirdApplyStocksNum;
        this.buyThirdPrice = buyThirdPrice;
        this.buyFourthApplyStocksNum = buyFourthApplyStocksNum;
        this.buyFourthPrice = buyFourthPrice;
        this.buyFifthApplyStocksNum = buyFifthApplyStocksNum;
        this.buyFifthPrice = buyFifthPrice;
        this.sellFirstApplyStocksNum = sellFirstApplyStocksNum;
        this.sellFirstPrice = sellFirstPrice;
        this.sellSecondApplyStocksNum = sellSecondApplyStocksNum;
        this.sellSecondPrice = sellSecondPrice;
        this.sellThirdApplyStocksNum = sellThirdApplyStocksNum;
        this.sellThirdPrice = sellThirdPrice;
        this.sellFourthApplyStocksNum = sellFourthApplyStocksNum;
        this.sellFourthPrice = sellFourthPrice;
        this.sellFifthApplyStocksNum = sellFifthApplyStocksNum;
        this.sellFifthPrice = sellFifthPrice;
        this.currentDate = currentDate;
        this.currentTime = currentTime;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public double getTodayOpenPrice() {
        return todayOpenPrice;
    }

    public void setTodayOpenPrice(double todayOpenPrice) {
        this.todayOpenPrice = todayOpenPrice;
    }

    public double getTodayClosePrice() {
        return todayClosePrice;
    }

    public void setTodayClosePrice(double todayClosePrice) {
        this.todayClosePrice = todayClosePrice;
    }

    public double getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public double getTodayHighestPrice() {
        return todayHighestPrice;
    }

    public void setTodayHighestPrice(double todayHighestPrice) {
        this.todayHighestPrice = todayHighestPrice;
    }

    public double getTodayLowestPrice() {
        return todayLowestPrice;
    }

    public void setTodayLowestPrice(double todayLowestPrice) {
        this.todayLowestPrice = todayLowestPrice;
    }

    public double getBidPrice() {
        return bidPrice;
    }

    public void setBidPrice(double bidPrice) {
        this.bidPrice = bidPrice;
    }

    public double getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(double sellPrice) {
        this.sellPrice = sellPrice;
    }

    public long getTradedStockesNum() {
        return tradedStockesNum;
    }

    public void setTradedStockesNum(long tradedStockesNum) {
        this.tradedStockesNum = tradedStockesNum;
    }

    public double getTradedStocksAmount() {
        return tradedStocksAmount;
    }

    public void setTradedStocksAmount(double tradedStocksAmount) {
        this.tradedStocksAmount = tradedStocksAmount;
    }

    public long getBuyFirstApplyStocksNum() {
        return buyFirstApplyStocksNum;
    }

    public void setBuyFirstApplyStocksNum(long buyFirstApplyStocksNum) {
        this.buyFirstApplyStocksNum = buyFirstApplyStocksNum;
    }

    public double getBuyFirstPrice() {
        return buyFirstPrice;
    }

    public void setBuyFirstPrice(double buyFirstPrice) {
        this.buyFirstPrice = buyFirstPrice;
    }

    public long getBuySecondApplyStocksNum() {
        return buySecondApplyStocksNum;
    }

    public void setBuySecondApplyStocksNum(long buySecondApplyStocksNum) {
        this.buySecondApplyStocksNum = buySecondApplyStocksNum;
    }

    public double getBuySecondPrice() {
        return buySecondPrice;
    }

    public void setBuySecondPrice(double buySecondPrice) {
        this.buySecondPrice = buySecondPrice;
    }

    public long getBuyThirdApplyStocksNum() {
        return buyThirdApplyStocksNum;
    }

    public void setBuyThirdApplyStocksNum(long buyThirdApplyStocksNum) {
        this.buyThirdApplyStocksNum = buyThirdApplyStocksNum;
    }

    public double getBuyThirdPrice() {
        return buyThirdPrice;
    }

    public void setBuyThirdPrice(double buyThirdPrice) {
        this.buyThirdPrice = buyThirdPrice;
    }

    public long getBuyFourthApplyStocksNum() {
        return buyFourthApplyStocksNum;
    }

    public void setBuyFourthApplyStocksNum(long buyFourthApplyStocksNum) {
        this.buyFourthApplyStocksNum = buyFourthApplyStocksNum;
    }

    public double getBuyFourthPrice() {
        return buyFourthPrice;
    }

    public void setBuyFourthPrice(double buyFourthPrice) {
        this.buyFourthPrice = buyFourthPrice;
    }

    public long getBuyFifthApplyStocksNum() {
        return buyFifthApplyStocksNum;
    }

    public void setBuyFifthApplyStocksNum(long buyFifthApplyStocksNum) {
        this.buyFifthApplyStocksNum = buyFifthApplyStocksNum;
    }

    public double getBuyFifthPrice() {
        return buyFifthPrice;
    }

    public void setBuyFifthPrice(double buyFifthPrice) {
        this.buyFifthPrice = buyFifthPrice;
    }

    public long getSellFirstApplyStocksNum() {
        return sellFirstApplyStocksNum;
    }

    public void setSellFirstApplyStocksNum(long sellFirstApplyStocksNum) {
        this.sellFirstApplyStocksNum = sellFirstApplyStocksNum;
    }

    public double getSellFirstPrice() {
        return sellFirstPrice;
    }

    public void setSellFirstPrice(double sellFirstPrice) {
        this.sellFirstPrice = sellFirstPrice;
    }

    public long getSellSecondApplyStocksNum() {
        return sellSecondApplyStocksNum;
    }

    public void setSellSecondApplyStocksNum(long sellSecondApplyStocksNum) {
        this.sellSecondApplyStocksNum = sellSecondApplyStocksNum;
    }

    public double getSellSecondPrice() {
        return sellSecondPrice;
    }

    public void setSellSecondPrice(double sellSecondPrice) {
        this.sellSecondPrice = sellSecondPrice;
    }

    public long getSellThirdApplyStocksNum() {
        return sellThirdApplyStocksNum;
    }

    public void setSellThirdApplyStocksNum(long sellThirdApplyStocksNum) {
        this.sellThirdApplyStocksNum = sellThirdApplyStocksNum;
    }

    public double getSellThirdPrice() {
        return sellThirdPrice;
    }

    public void setSellThirdPrice(double sellThirdPrice) {
        this.sellThirdPrice = sellThirdPrice;
    }

    public long getSellFourthApplyStocksNum() {
        return sellFourthApplyStocksNum;
    }

    public void setSellFourthApplyStocksNum(long sellFourthApplyStocksNum) {
        this.sellFourthApplyStocksNum = sellFourthApplyStocksNum;
    }

    public double getSellFourthPrice() {
        return sellFourthPrice;
    }

    public void setSellFourthPrice(double sellFourthPrice) {
        this.sellFourthPrice = sellFourthPrice;
    }

    public long getSellFifthApplyStocksNum() {
        return sellFifthApplyStocksNum;
    }

    public void setSellFifthApplyStocksNum(long sellFifthApplyStocksNum) {
        this.sellFifthApplyStocksNum = sellFifthApplyStocksNum;
    }

    public double getSellFifthPrice() {
        return sellFifthPrice;
    }

    public void setSellFifthPrice(double sellFifthPrice) {
        this.sellFifthPrice = sellFifthPrice;
    }

    public String getCurrentDate() {
        return currentDate;
    }

    public void setCurrentDate(String currentDate) {
        this.currentDate = currentDate;
    }

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "stockCode='" + stockCode + '\'' +
                ", stockName='" + stockName + '\'' +
                ", todayOpenPrice=" + todayOpenPrice +
                ", todayClosePrice=" + todayClosePrice +
                ", currentPrice=" + currentPrice +
                ", todayHighestPrice=" + todayHighestPrice +
                ", todayLowestPrice=" + todayLowestPrice +
                ", bidPrice=" + bidPrice +
                ", sellPrice=" + sellPrice +
                ", tradedStockesNum=" + tradedStockesNum +
                ", tradedStocksAmount=" + tradedStocksAmount +
                ", buyFirstApplyStocksNum=" + buyFirstApplyStocksNum +
                ", buyFirstPrice=" + buyFirstPrice +
                ", buySecondApplyStocksNum=" + buySecondApplyStocksNum +
                ", buySecondPrice=" + buySecondPrice +
                ", buyThirdApplyStocksNum=" + buyThirdApplyStocksNum +
                ", buyThirdPrice=" + buyThirdPrice +
                ", buyFourthApplyStocksNum=" + buyFourthApplyStocksNum +
                ", buyFourthPrice=" + buyFourthPrice +
                ", buyFifthApplyStocksNum=" + buyFifthApplyStocksNum +
                ", buyFifthPrice=" + buyFifthPrice +
                ", sellFirstApplyStocksNum=" + sellFirstApplyStocksNum +
                ", sellFirstPrice=" + sellFirstPrice +
                ", sellSecondApplyStocksNum=" + sellSecondApplyStocksNum +
                ", sellSecondPrice=" + sellSecondPrice +
                ", sellThirdApplyStocksNum=" + sellThirdApplyStocksNum +
                ", sellThirdPrice=" + sellThirdPrice +
                ", sellFourthApplyStocksNum=" + sellFourthApplyStocksNum +
                ", sellFourthPrice=" + sellFourthPrice +
                ", sellFifthApplyStocksNum=" + sellFifthApplyStocksNum +
                ", sellFifthPrice=" + sellFifthPrice +
                ", currentDate='" + currentDate + '\'' +
                ", currentTime='" + currentTime + '\'' +
                '}';
    }
}
